/*
 * StartStopWorldKeyListener.hpp
 *
 *  Created on: 15-01-2011
 *      Author: Przemek
 */

#pragma once

#include "gui/KeyListener.hpp"

/*
 * Starts or stops the world time when a given character is pressed.
 */
class StartStopWorldKeyListener: public KeyListener
{
	private:
		static const char FUNCTION_CHAR = 's';

	public:
		void keyPressed(const EventArguments& arguments);

	private:
		void switchWorldRunningState();
};
